<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>首页</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
	<link rel="stylesheet" href="__PUBLIC__/client/css/cui.css?sj={$tj}" />
	<link rel="stylesheet" href="__PUBLIC__/client/css/slick.css?sj={$tj}" />
	<link rel="stylesheet" href="__PUBLIC__/client/css/style.css?sj={$tj}" />
	<script type="text/javascript" src="__PUBLIC__/client/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/client/js/lib.js?sj={$tj}"></script>
    
    <link rel="stylesheet" href="__PUBLIC__/business/js/mobiscroll.css" >
    	       	<script src="__PUBLIC__/business/js/mobiscroll.js"></script>
    <style>
    	.bd7 .row1 ul {padding: 0px;}
    </style>
</head>
<body class="mhome">
	<div class="viewport">
		<!--<div class="sitemap">
			<a href="{:U('Client/wo/index')}" class="goback"></a>我的资料
		</div>-->
		<!--end header-->
		<div id="bd" class="bd7 fix">
			<div class="row1">
                <ul>
                    <li class="li1" style="margin: 0px; padding: 5px 10px;">
                        <a href="javascript:;"><img style="width: 50px;border-radius:50px" src="{$session.wxuser.headimgurl}" alt=""></a>
                        头像
                    </li>
                    <li>
                        <span>{$session.user.name}</span>
                        姓名
                    </li>
                   <li class="li2">
                        <a href="{:U('Client/wo/editusername')}">{$session.user.username}</a>
                        昵称
                    </li>
                </ul>         
            </div>
            <div class="row2">
                <ul>
                    <li>
                        <span>{$session.user.sex}</span>
                        性别
                    </li>
                    <li class="li2">
                        <a href="{:U('Client/wo/editarea')}">{$session.user.area}</a>
                        地区
                    </li>
                    <li class="li2">
						<input type="text" id="timeStart" data-role="datebox" value="{$session.user.shengri}" style="border: 0px; float: right; width: 88px; height: 40px; line-height: 40px;">
                        出生日期
                    </li>
                </ul>
            </div>
            <div class="row3">
                <ul>
                    <li class="li2">
                        <a href="{:U('Client/wo/editphone')}">{$session.user.phone|default="点击绑定"}</a>
                        绑定手机
                    </li>
                    <li class="li2">
                        <a href="{:U('Client/wo/editaddress')}">{$session.user.address|default="点击修改取件地址"}</a>
                        取送件地址
                    </li>
                </ul>
            </div>
		</div>
		<div class="c"></div>
		<!--end #bd-->
	</div>
</body>
	<script type="text/javascript">
        $(function () {
			var currYear = (new Date()).getFullYear();	
			var opt={};
			opt.date = {preset : 'date'};
			opt.datetime = {preset : 'datetime'};
			opt.time = {preset : 'time'};
			opt.default = {
				theme: 'android-ics light', //皮肤样式
		        display: 'modal', //显示方式 
		        mode: 'scroller', //日期选择模式
				dateFormat: 'yyyy-mm-dd',
				lang: 'zh',
				showNow: true,
				nowText: "今天",
		        startYear: currYear - 10, //开始年份
		        endYear: currYear + 10 //结束年份
			};

		  	$("#timeStart").mobiscroll($.extend(opt['date'], opt['default']));
        });
        
        //修改生日
        function edit_sr(v){
        	 	 var tourl="{:U('Client/api/edit_user')}";
   			 var data={id:'{$session.user.id}',shengri:v}
   			 $.post(tourl,data,function(data){
			    if(data.status!=1){
			    		Msg('更该失败!',2);
			    }else{
			    		Msg('更该成功!',1);
			    }
			 });
        }
    </script>
    </html>
